<?php
class Personaladdress_Data_Updateuserdata implements Personaladdress_Data_Mainable{
    
    private $core_controller_dataoperation;
    
    public function __construct() {
        $this->core_controller_dataoperation = new Core_Controller_Dataoperation;
    }
    
    public function main(array $variables = null) {
        $variables['query'] = "UPDATE personal_data SET telephone_number='".$variables['post']['telephone_number']."', street_name='".$variables['post']['street_name']."', house_number='".$variables['post']['house_number']."', apartament_number='".$variables['post']['apartament_name']."', postal_code='".$variables['post']['postal_code']."', city='".$variables['post']['city']."', region='".$variables['post']['region']."', vat_number='".$variables['post']['vat_number']."' WHERE username='".$_SESSION['username']."';";
        //echo $variables['query'];
        //die();
        return $this->core_controller_dataoperation->main($variables);
    }
}
